/*
Copyright (C) 2009  Raymond Jeon
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/


#ifndef __GL_LIB_EMAILADDRESS_H__
#define __GL_LIB_EMAILADDRESS_H__


#include "gl_lib_define.h"


BOOL GlEmailAddressTok(IN char *pBuffer, OUT char *szTo, IN int iLen, OUT char **pId, OUT char **pHost);
BOOL GlGetEmailAddress(char *pBuffer, char *szTo, int iLen);
BOOL GlIDStringCheck(char *s);
BOOL GlStrIsInternetID(char *s);
BOOL GlAddressStringCheck(char *s);
BOOL GlStrIsInternetAddress(char *s);
BOOL GlValideEmailHost(char *s);
BOOL GlValideEmailAddress(char *s);
BOOL GlIsLocalIpaddress(char *s);
BOOL GlGetMailHostFromEmailAddress(IN char *szEmailAddress, OUT char *szMailHost);
BOOL GlGetIdAndMailHost(IN char *szEmailAddress, OUT char *szId, OUT char *szMailHost);




#endif	// __GL_LIB_EMAILADDRESS_H__